package chapter03;

public class Dog2 extends Action1 implements Animal1{
    public static void main(String[] args) {
        Dog2 d = new Dog2();
        d.shout();
        d.eat();
        d.info();
    }
    @Override
    void eat() {
        System.out.println("喜欢吃骨头");
    }

    @Override
    public void shout() {
        System.out.println("汪汪");
    }

    @Override
    public void info() {
        System.out.println(Animal1.getId());
        System.out.println(Animal1.NAME);
    }
}
